<?php 
	require_once('header_sidebar.php');
	require_once('Class/connexionDB.Class.php');
	require_once('Class/displayInHtml.Class.php');
	require_once('Class/session.Class.php');
	
	$session = session::getInstance();
	$db = new connexionDB();
?>
	<link rel="stylesheet" href="js/plugins/chosen/chosen.min.css">
	 <aside class="right-side">
		<section class="content-header">
		    <h1>
		        <?php echo $translate->translate('translate'); ?>
		    </h1>
		    <ol class="breadcrumb">
		        <li><a href="#"><?php echo $translate->translate('translate'); ?></a></li>
		    </ol>
		</section>
		<section class="content">
			<div class="col-md-12">
				<div class='box box-info'>
	                <div class='box-header'>
	                    <h3 class='box-title'><?php echo $translate->translate('uploadFile'); ?></h3>
	                </div>
	                <div class="box-body">
	                	<?php if (isset($_GET['upload']) && $_GET['upload'] == 0) : ?>
		                	<div class="alert alert-danger alert-dismissable">
	                            <i class="fa fa-ban"></i>
	                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	                            <b>File not uploaded !</b> <?php echo $_GET['return']; ?>
	                        </div>
	                    <?php endif; ?>
	                    <?php if (isset($_GET['upload']) && $_GET['upload'] == 1) : ?>
	                    	<div class="alert alert-success alert-dismissable">
                                <i class="fa fa-check"></i>
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                                <b>File Uploaded !</b> <?php echo $_GET['return']; ?>
                            </div>
	                	<?php endif; ?>
						<form action="upload.php" method="post" enctype="multipart/form-data">
						    <h4><?php echo $translate->translate('selectFileUpload'); ?> : </h4>
						    <input type="file" name="fileToUpload" id="fileToUpload" accept=".xml"><br/>
						    <h4><?php echo $translate->translate('nameLanguage'); ?> : </h4>
						    <input type="text" name="countryName"><br><br>
						    <input class="btn btn-info" type="submit" value="Upload" name="submit">
						</form>
	                </div>
	            </div>
	        </div>
		</section>
	</aside>
</div>
<?php require_once('footer.php');?>